﻿// Admin.NET 项目的版权、商标、专利和其他相关权利均受相应法律法规的保护。使用本项目应遵守相关法律法规和许可证的要求。
//
// 本项目主要遵循 MIT 许可证和 Apache 许可证（版本 2.0）进行分发和使用。许可证位于源代码树根目录中的 LICENSE-MIT 和 LICENSE-APACHE 文件。
//
// 不得利用本项目从事危害国家安全、扰乱社会秩序、侵犯他人合法权益等法律法规禁止的活动！任何基于本项目二次开发而产生的一切法律纠纷和责任，我们不承担任何责任！

using System.ComponentModel.DataAnnotations;
using Admin.NET.Core;
using SqlSugar;
namespace Admin.NET.Application.Entity;

/// <summary>
/// 货品信息
/// </summary>
[Tenant("1300000000001")]
[SugarTable("commodityinformation", "货品信息")]
public class Commodityinformation : EntityBaseDel
{
    /// <summary>
    /// 货品名称
    /// </summary>
    [SugarColumn(ColumnName = "ItemName", ColumnDescription = "货品名称", Length = 32)]
    public virtual string? ItemName { get; set; }
    
    /// <summary>
    /// 货品编号
    /// </summary>
    [SugarColumn(ColumnName = "ItemCode", ColumnDescription = "货品编号", Length = 32)]
    public virtual string? ItemCode { get; set; }
    
    /// <summary>
    /// 货品类型
    /// </summary>
    [SugarColumn(ColumnName = "GoodsID", ColumnDescription = "货品类型")]
    public virtual long? GoodsID { get; set; }
    
    /// <summary>
    /// 规格型号
    /// </summary>
    [SugarColumn(ColumnName = "Specifications", ColumnDescription = "规格型号", Length = 32)]
    public virtual string? Specifications { get; set; }
    
    /// <summary>
    /// 入库参考价/元
    /// </summary>
    [SugarColumn(ColumnName = "EnterPrice", ColumnDescription = "入库参考价/元", Length = 32, DecimalDigits=0)]
    public virtual decimal? EnterPrice { get; set; }
    
    /// <summary>
    /// 出库参考价/元
    /// </summary>
    [SugarColumn(ColumnName = "GooutPrice", ColumnDescription = "出库参考价/元", Length = 32, DecimalDigits=0)]
    public virtual decimal? GooutPrice { get; set; }
    
    /// <summary>
    /// 显示顺序
    /// </summary>
    [SugarColumn(ColumnName = "DisplayOrder", ColumnDescription = "显示顺序")]
    public virtual int? DisplayOrder { get; set; }
    
    /// <summary>
    /// 状态
    /// </summary>
    [SugarColumn(ColumnName = "State", ColumnDescription = "状态")]
    public virtual bool? State { get; set; }
    
    /// <summary>
    /// 保质期管理
    /// </summary>
    [SugarColumn(ColumnName = "ShelfManagement", ColumnDescription = "保质期管理")]
    public virtual bool? ShelfManagement { get; set; }
    
    /// <summary>
    /// 保质期
    /// </summary>
    [SugarColumn(ColumnName = "Shelflife", ColumnDescription = "保质期")]
    public virtual int? Shelflife { get; set; }
    
    /// <summary>
    /// 保质期单位
    /// </summary>
    [SugarColumn(ColumnName = "ShelfUnits", ColumnDescription = "保质期单位", Length = 32)]
    public virtual string? ShelfUnits { get; set; }
    
    /// <summary>
    /// 预警天数（天）
    /// </summary>
    [SugarColumn(ColumnName = "Earlywarning", ColumnDescription = "预警天数（天）")]
    public virtual int? Earlywarning { get; set; }
    
    /// <summary>
    /// 备注
    /// </summary>
    [SugarColumn(ColumnName = "Remark", ColumnDescription = "备注", Length = 200)]
    public virtual string? Remark { get; set; }
    
    /// <summary>
    /// 启用多单位
    /// </summary>
    [SugarColumn(ColumnName = "MultiUnitEnabled", ColumnDescription = "启用多单位")]
    public virtual bool? MultiUnitEnabled { get; set; }
    
    /// <summary>
    /// 主单位
    /// </summary>
    [SugarColumn(ColumnName = "Primaryunit", ColumnDescription = "主单位")]
    public virtual long? Primaryunit { get; set; }
    
    /// <summary>
    /// 条码
    /// </summary>
    [SugarColumn(ColumnName = "PrimaryunitBarcode", ColumnDescription = "条码", Length = 32)]
    public virtual string? PrimaryunitBarcode { get; set; }
    
    /// <summary>
    /// 辅助单位
    /// </summary>
    [SugarColumn(ColumnName = "AuxiliaryUnits", ColumnDescription = "辅助单位", Length = 1000)]
    public virtual string? AuxiliaryUnits { get; set; }
    
    /// <summary>
    /// 库存信息
    /// </summary>
    [SugarColumn(ColumnName = "InventoryList", ColumnDescription = "库存信息", Length = 1000)]
    public virtual string? InventoryList { get; set; }
    
    /// <summary>
    /// 上传图片
    /// </summary>
    [SugarColumn(ColumnName = "UploadImage", ColumnDescription = "上传图片", Length = 2000)]
    public virtual string? UploadImage { get; set; }
    
    /// <summary>
    /// 上传附件
    /// </summary>
    [SugarColumn(ColumnName = "UploadAttachments", ColumnDescription = "上传附件", Length = 2000)]
    public virtual string? UploadAttachments { get; set; }
    
    /// <summary>
    /// 客户名称
    /// </summary>
    [Required]
    [SugarColumn(ColumnName = "UserID", ColumnDescription = "客户名称")]
    public virtual long UserID { get; set; }
    
    /// <summary>
    /// 供应商
    /// </summary>
    [Required]
    [SugarColumn(ColumnName = "VendorID", ColumnDescription = "供应商")]
    public virtual long VendorID { get; set; }
    
}
